// Inventory.java written by Thomas Pierson

import java.util.Scanner;

/**
* The <code>Inventory</code> class represents an Inventory
*@author Thomas Pierson (Team 2)
*@version 1.0
**/

public class Inventory
{
    private int itemNum;
    private String manufacturer;
    private String size;
    private double price;
    private int quantity;

/**
*Creates an <code>Inventory</code> object
*@param itemNum An <code>int</code> specifying an inventory ID number.
*@param manufacturer A <code>String</code> specifying a manufacturer.
*@param size A <code>String</code> specifying a flash drive size.
*@param price A <code>double</code> specifying a price.
*@param quantity A <code>int</code> specifying the quantity.
**/   
    public Inventory(int itemNum, String manufacturer, String size, double price, int quantity)
    {
        setItemNum(itemNum);
        setManufacturer(manufacturer);
        setSize(size);
	setPrice(price);
	setQuantity(quantity);
    }

/**
*Sets the item number to a specified <code>int</code>.
*@param itemNum An <code>int</code> specifying the inventory ID number.
**/       
    public void setItemNum(int itemNum)
    {
        this.itemNum = itemNum;
    }

/**
*Sets the manufacturer to a specified <code>String</code>.
*@param manufacturer A <code>String</code> specifying the manufacturer.
**/       
    public void setManufacturer(String manufacturer)
    {
        this.manufacturer = manufacturer;
    }

/**
*Sets the size to a specified <code>String</code>.
*@param size A <code>String</code> specifying the flash drive size.
**/       
    public void setSize(String size)
    {
        this.size = size;
    }

/**
*Sets the price to a specified <code>double</code>.
*@param price A <code>double</code> specifying the price.
**/   
    public void setPrice(double price)
    {
	this.price = price;
    }

/**
*Sets the quantity to a specified <code>int</code>.
*@param quantity A <code>int</code> specifying the quantity.
**/   
    public void setQuantity(int quantity)
    {
	this.quantity = quantity;
    }

/**
*Gets the inventory item number.
*@return An <code>int</code> specifying the inventory ID number.
**/
    public int getItemNum()
    {
        return( itemNum );
    }

/**
*Gets the manufacturer.
*@return An <code>String</code> specifying the manufacturer.
**/    
    public String getManufacturer()
    {
        return( manufacturer );
    }

/**
*Gets the size.
*@return An <code>String</code> specifying the size.
**/    
    public String getSize()
    {
        return( size );
    }

/**
*Gets the price.
*@return An <code>double</code> specifying the price.
**/
    public double getPrice()
    {
	return( price);
    }

/**
*Gets the quantity.
*@return An <code>int</code> specifying the quantity.
**/
    public int getQuantity()
    {
	return( quantity);
    }

/**
*Returns this Inventory object as a String.
*@return A <code>String</code> specifying the itemNum, manufacturer, size, price, and quantity.
**/    
    public String toString()
    {
        return  getItemNum() + ": " + getManufacturer() + ": " + getSize() + ": " + getPrice() + ": " + getQuantity() + "\n";
    }

    
    public static void main(String args[])
    {
        Inventory i = new Inventory(1, "SanDisk", "2GB", 9.99, 10);
	  System.out.println(i.toString());
    }
}

